/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.Company;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;

/**
 *
 * @author ronildo
 */

@Local
public interface CompanyPersistenceLocal {

    @PostConstruct
    void initialize();

    Company findById(Long id);

    Company findByName(String name);

    List<Company> list(Company company);

    List<Company> listAll();

    void persist(Company company);

    void remove(Company company);

    void removeCascade(Company company);

    void update(Company company);
}
